/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package phidgetmotion.evaluation;

import java.io.Serializable;

/**
 *
 * @author monika
 */
public class Experiment implements Serializable, Comparable<Experiment> {
	private static final long serialVersionUID = -8663215242655301397L;

	private int activity;
	private int evaluatedActivity;
	private long recognitionTime;

	public Experiment(int act) {
		this(act, -1, -1);
	}
	public Experiment(int act, int evaluatedAct) {
		this(act, evaluatedAct, -1);
	}

	public Experiment(int act, int evaluatedAct, long time) {
		setActivity(act);
		setEvaluatedActivity(evaluatedAct);
		setRecognitionTime(time);
	}

	public void setActivity(int newActivity) {
		this.activity = newActivity;
	}
	public int getActivity() {
		return this.activity;
	}

	public void setEvaluatedActivity(int newEActivity) {
		this.evaluatedActivity = newEActivity;
	}
	public int getEvaluatedActivity() {
		return this.evaluatedActivity;
	}

	public void setRecognitionTime(long time) {
		this.recognitionTime = time;
	}
	public long getRecognitionTime() {
		return this.recognitionTime;
	}
	@Override
	public int compareTo(Experiment o) {
		return (int)(recognitionTime-o.recognitionTime);
	}

}
